import request from '@/utils/http'

export function getClassroomBuildingById (id) {
    return request({
        url: `classroomBuilding/${id}`,
        method: 'get'
    })
}

export function listClassroomBuildings (page, pageSize) {
    return request({
        url: 'classroomBuilding',
        method: 'get',
        params: { page, pageSize }
    })
}

export function createClassroomBuildings (data) {
    return request({
        url: 'classroomBuilding',
        method: 'post',
        data
    })
}

export function updateClassroomBuilding (data) {
    return request({
        url: 'classroomBuilding',
        method: 'put',
        data
    })
}

export function deleteClassroomBuildingById (id) {
    return request({
        url: `classroomBuilding/${id}`,
        method: 'delete',
    })
}
